package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.SealMathRuleFallback;
import com.weixing.mall.provider.api.model.vo.SealMatchRuleVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author wx
 * @Date 2019/12/5 17:06
 * @Version 1.0
 */
@FeignClient(value ="mall-provider-depot",configuration = FeignRibbonClientAutoConfiguration.class,fallback = SealMathRuleFallback.class)
public interface SealMathRuleServiceRpc {
    @GetMapping("api/sealMathRule/getById")
    public Result<SealMatchRuleVo> getById(@RequestParam(value = "id",required = false) Long id);
}
